package com.etc.log;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.stereotype.Component;
@Aspect
@Component
@EnableAspectJAutoProxy(proxyTargetClass=true)
public class BlogLog {
	@Pointcut("execution(* com.etc.service.impl.*.*(..))")
	public void longyu() {}
@Before(value="longyu()")
public void before() {
	System.out.println("*************before***********");
}
@After(value="longyu()")
public void after() {
	System.out.println("*************after***********");
}
@Around(value="longyu()")
public Object around(ProceedingJoinPoint pdj) throws Throwable {
	System.out.println("*************around before***********");
	Object obj=pdj.proceed();
	System.out.println("*************around after***********");
	return obj;
}
}
